package cn.jhg.account.rest;


import cn.jhg.account.persist.Account;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

@Path("/account")
public class AccountRest {
	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String sayHello() {
		return "Hello testing";
	}

	
	
	/**
	 * �� id ��ȡ�û�
	 * 
	 * @param id
	 *            �û�id
	 * @return �û�ʵ��
	 */
	@Path("/id")
	@GET
	@Produces({ MediaType.APPLICATION_JSON, })
	public Account getUserById(@QueryParam("id") int id)
	{
		Account account = new Account();
		System.out.println("param:id=" + id);
		
		account.setId(22);
		
		return account;
	}

}